<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>iview example</title>
    <base href="{$Think.RES_URL}iview/"/>
    <title>{block name="title"}标题{/block}</title>
    <link href="iview.css" rel="stylesheet"/>
    <script src="vue.min.js"></script>
    <script src="iview.min.js"></script>
    {block name="style"}
    {/block}
</head>
<body>
<div id="app">
    {block name="main"}

    {/block}
</div>
{block name="vue"}
<script>
  vue=new Vue({
    el: '#app',
    data: {
      visible: false
    },
    methods: {
      show: function () {
        this.visible = true;
      }
    }
  })
</script>
{/block}

</body>
</html>